#!/usr/bin/python
# coding: UTF-8

i=int(raw_input("Please input I:"))
r=0

level = [1000000,600000,400000,200000,100000,0]
ratio = [0.01,0.015,0.03,0.05,0.075,0.1]

for n in range(0,6):
    if i>level[n]:
        r+=(i-level[n])*ratio[n]

print "i=%d  reward=%d" %(i,r)